package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Dev;
import com.ruoyi.system.domain.Devparastruct;
import com.ruoyi.system.mapper.DevparastructMapper;
import com.ruoyi.system.service.DevparastructService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DevparastructServiceImpl implements DevparastructService {
    @Autowired
    private DevparastructMapper devparastructMapper;

    @Override
    public int adddev(Devparastruct devparastruct) {
        return devparastructMapper.adddev(devparastruct);
    }

    @Override
    public void deleteDev(Integer devId) {
        devparastructMapper.deleteDev(devId);
    }

    @Override
    public List<Devparastruct> selectDevid(Integer devId) {
        return devparastructMapper.selectDevid(devId);
    }

    @Override
    public void deleteParaNo1(Integer devId, Integer paraNo1) {
        devparastructMapper.deleteParaNo1(devId,paraNo1);
    }

    @Override
    public List<Devparastruct> selectDev(Integer devId) {
        return devparastructMapper.selectDev(devId);
    }

    @Override
    public void updateDev(Devparastruct devparastruct) {
        devparastructMapper.updateDev(devparastruct);
    }

}
